<?php
include_once("include/include.php.inc");
html_header("Edit Support");

/*   $backlink=getenv('HTTP_REFERER');*/

   if (isset($_GET['sup_uid'])) {
      $msup = $_GET['sup_uid'];
	  //echo $msup;
      $result = "SELECT * FROM ssts_support WHERE ssts_support.sup_uid='$msup'";
      $action = mysql_query($result) or die(mysql_error());
/*               if (FALSE === ($action = mysql_query($result)))
              {
                  print mysql_error()."<br />";
                  print $result;
              }*/
      $edit_row = mysql_fetch_array($action);
   }
   echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n"; 
?>
<h2><center>Update User</h2></center>
<div align="center">
      <form action="update_support.php" method="post">
      <table width="300"  BORDER=\"0\" bordercolor=\"#FFFFFF\">
      
     <tr>
      <td>ID:</td><td>
      <?php print "".$edit_row["sup_uid"]; ?></td></tr>
      <input type="hidden" name="sup_uid" value="<?php print $edit_row["sup_uid"] ?>"
      <tr><td>
      Name:</td><td>
      <input name="sup_name" value="<?php print $edit_row["sup_name"] ?>" type="text" size="50" maxlength="50"></td></tr>
      <tr><td>
      Email:</td><td>
      <input name="sup_email" value="<?php print $edit_row["sup_email"] ?>" type="text" size="50" maxlength="50"></td></tr>
      <tr><td>
	  Password:</td><td>
      <input name="sup_pass" type="password" size="50" maxlength="50"></td></tr>
      <tr><td>
      <input type="submit" value=" Update "></td></tr>
      </table></form>
</div>
<?php
echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 
echo "\n";
  html_footer();
?>